'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = 'hi, egg';
  }
  async test() {
    const { ctx } = this;
    ctx.body = 'hi, egg';
  }
  async testGirls() {
    const ctx = this.ctx
    let id = ctx.query.id
    const res = await ctx.service.jspang.getGirl(id)
    ctx.body = res
  }
}

module.exports = HomeController;

/**
 * RESTFUL Controller
 * HTML URL HTML  渲染页面
 * 代理服务器
 */
